package com.lucaswangdev.constant.common;

import lombok.Data;

@Data
public class ErrorInfo {
    private String errorCode;
    private String errorMsg;

    public ErrorInfo() {
    }

    public ErrorInfo(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String toString() {
        return "[" + errorCode + "]" + ":" + errorMsg;
    }
}
